HTMLify
style.css
Views: 11 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | * { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #222; } body.on { background: radial-gradient(#555, #111); } .wire { position: absolute; left: calc(50% - 2px); bottom: 50%; width: 4px; height: 60vh; background: #000; z-index: 1; } .bulb { position: relative; width: 80px; height: 80px; background: #444; border-radius: 50%; z-index: 2; } .bulb:before { content: ""; position: absolute; left: 22.5px; top: -50px; width: 35px; height: 80px; background: #444; border-top: 30px solid #000; border-radius: 10px; } body.on .bulb::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; background: #fff; border-radius: 50%; filter: blur(40px); } body.on .bulb { background-color: #fff; box-shadow: 0 0 50px #fff, 0 0 100px #fff, 0 0 150px #fff, 0 0 200px #fff, 0 0 250px #fff, 0 0 300px #fff, 0 0 350px #fff; } body.on .bulb::before { background: #fff; } body.on .bulb span:nth-child(1) { box-shadow: 20px 20px 0 10px #fff; } body.on .bulb span:nth-child(2) { box-shadow: -20px 20px 0 10px #fff; } .bulb span:nth-child(1) { position: absolute; top: -16px; left: -4px; display: block; width: 30px; height: 30px; background: transparent; transform: rotate(342deg); border-bottom-right-radius: 40px; box-shadow: 20px 20px 0 10px #444; } .bulb span:nth-child(2) { position: absolute; top: -16px; right: -4px; display: block; width: 30px; height: 30px; background: transparent; transform: rotate(17deg); border-bottom-left-radius: 40px; box-shadow: -20px 20px 0 10px #444; } .switch { position: absolute; bottom: 50px; right: 50px; width: 80px; height: 80px; background: linear-gradient(#eee, #ccc, #eee); border: 3px solid #000; border-radius: 10px; display: flex; justify-content: center; align-items: center; box-shadow: gray 0px 20px 30px -10px; } .switch .btn { position: relative; width: 25px; height: 40px; background: linear-gradient(#777, #fff, #777); border-radius: 6px; border: 2px solid #000; cursor: pointer; } .switch .btn::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 85%; background: linear-gradient(#fff, #fff); border-radius: 4px; } .on .switch .btn::before { top: 15%; } #audio { display: none; } |